﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Threading;
using System.Net.Sockets;

public abstract class BaseThread
{
    protected Thread mThread;

    public BaseThread()
    {
        mThread = new Thread(Run);
    }

    public virtual void Start()
    {
        mThread.Start();
    }
    public abstract void Run();
    public void Stop()
    {
        mThread.Abort();
    }
}
